package com.car.carmgr.service;

import com.car.carmgr.bean.User;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface UserService {
    User login(User user);

    int insertUser(User user);

    int deleteUserById(Integer userId);

    int updateUser(User user);

    /**
     * 查询用户
     */
    PageInfo<User> findUserByWhere(String loginName,String realName,String identity,String address,String phone,Integer sex, Integer page,Integer limit);

    Integer getCountByWhere(String loginName,String realName,String identity,String address,String phone,Integer sex);

    /*重置密码*/
    int resetUserPwd(Integer userId);

    int deleteSomeUser(String [] split);

    int updateRoleUser(Integer userId , Integer[] rids);
}
